package com.msmall.community.common.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.msmall.base.model.BaseObject;

/**
 * 积分规则
 * @author Administrator
 *
 */
@Entity
@Table(name="base_score_rule")
public class ScoreRule extends BaseObject implements Serializable {
	
	private static final long serialVersionUID = -4924753124246457452L;

	public static final String BBS_TOPIC_ADD_KEY = "addTopic";	
	public static final String BBS_TOPIC_ELITE_KEY = "eliteTopic";	
	public static final String BBS_TOPIC_DELETE_KEY = "deleteTopic"; //只减少主贴积分，回复不减少分数
	public static final String BBS_THREAD_ADD_KEY = "addThread";
	public static final String BBS_THREAD_DELETE_KEY = "deleteThread";
	
	public static final String BASE_REGISTER_KEY = "register"; //注册
	public static final String BASE_NORMAL_LOGIN_KEY = "normalLogin"; //普通用户每日登录
	public static final String BASE_VIP_LOGIN_KEY = "vipLogin"; //高级用户每日登录
	public static final String BASE_ROSTER_KEY = "rosterRegister"; // 邀请好友注册成功
	
	
	public static final String SPACE_DIARY_ADD_KEY = "addDiary"; //写日记
	public static final String SPACE_DIARY_COPY_KEY = "copyDiary"; // 被转帖
	public static final String SPACE_DIARY_DELETE_KEY = "deleteDiary"; // 管理员删除日记，自己删除不影响
	public static final String SPACE_DIARY_FAVORITE_KEY = "favoriteDiary"; // 被用户加入收藏
	public static final String SPACE_DIARY_ELITE_KEY = "eliteDiary"; // 官方评为精华
	
	public static final String SPACE_PHOTO_ADD_KEY = "addPhoto"; // 上传一张照片
	public static final String SPACE_PHOTO_DELETE_KEY = "deletePhoto"; // 管理员删除
	public static final String SPACE_PHOTO_FAVORITE_KEY = "favoritePhoto"; // 被其他用户加入收藏
	public static final String SPACE_PHOTO_ELITE_KEY = "elitePhoto"; // 官方优秀
	
	public static final String SPACE_COPY_ADD_KEY = "addCopy"; // 用户每次转贴将会获得积分
	public static final String SPACE_COPY_DELETE_KEY = "deleteCopy"; // 由于违规转贴被删除，将扣除积分
	public static final String SPACE_COPY_COPY_KEY = "CopyCopy"; // 转贴被好友收藏或转走获得积分
	public static final String SPACE_COPY_ELITE_KEY = "eliteCopy"; // 官方优秀
	
	
	@Id
	@Column(name="score_rule_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long scoreRuleId;

	@Column(name="chinese_name")
	private String chineseName;

	@Column(name="score_key")
	private String scoreKey;

	@Column(name="score")
	private Integer score;

	@Column(name="enabled")
	private Short enabled;
	
	@Column(name="description")
	private String description;

	public ScoreRule() {
		super();
	}

	public Long getScoreRuleId() {
		return scoreRuleId;
	}

	public void setScoreRuleId(Long scoreRuleId) {
		this.scoreRuleId = scoreRuleId;
	}

	public String getChineseName() {
		return this.chineseName;
	}

	public void setChineseName(String chineseName) {
		this.chineseName = chineseName;
	}

	public Short getEnabled() {
		return this.enabled;
	}

	public void setEnabled(Short enabled) {
		this.enabled = enabled;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public String getScoreKey() {
		return scoreKey;
	}

	public void setScoreKey(String scoreKey) {
		this.scoreKey = scoreKey;
	}

	@Override
	public boolean equals(Object o) {
		return false;
	}

	@Override
	public int hashCode() {
		return 0;
	}

	@Override
	public String toString() {
		return null;
	}

}
